<!-- FORM -->
	
    <form name="reg" method="post" onsubmit="return verify()"  action="">
		<table>
			<tr>
				<td><label for="firstname">First Name:</label></td>
				<td><input type="text" id="firstname" name="firstname" required="required" maxlength=32></td>
			</tr>
			<tr>
				<td><label for="middlename">Middle Name:</label></td>
				<td><input type="text" id="middlename" name="middlename" required="required" maxlength=32></td>
			</tr>
			<tr>
				<td><label for="lastname">Last Name:</label></td>
				<td><input type="text" id="lastname" name="lastname" required="required" maxlength=32></td>
			</tr>
			<tr>
				<td><label for="sex">Sex:</label> </td>
				<td><input type="radio" name="sex" value="M">Male </br>
					<input type="radio" name="sex" value="F">Female </br>
					<input type="radio" name="sex" Value="O">Other </br>
				</td>
			</tr>
			<tr>
				<td><label for="birthday">Birthday:</label></td>
				<td><input type="date" id="birthday" name="birthday"></td>
			</tr>
			<tr>
                <td><label for="accountType">Account Type:  </label></td>
				<td><input type="radio" name="accountType" value="student" onClick="studentSelected()" checked="true">Student
                    <input type="radio" name="accountType" value="adminStaff" onClick="adminStaffSelected()">Administrative Staff
                    <input type="radio" name="accountType" value="instructor" onClick="instructorSelected()">Instructor
				</td>
			</tr>
		</table>
		
                <!--View this when Student is selected-->
    <div id="divStudent">
		<table>
             <tr>
				<td><label for="studentNumber">Student Number:</label></td>
				<td><input type="text" id="studentNumber" name="studentNumber" size=10 maxlength=10></td>
			</tr>
			<tr>
				<td><label for="homeAddress">Home Address:</label></td>
				<td><input type="text" id="homeAddress" name="homeAddress" maxlength=128></td>
			</tr>
			<tr>
				<td><label for="collegeAddress">College Address:</label></td>
				<td><input type="text" id="collegeAddress" name="collegeAddress" maxlength=128></td>
			</tr>
			<tr>
				<td><label for="regdAdviser">Registration Adviser: </label></td>
				<td><select id="regdAdviser" name="regdAdviser">
					<?php
						$string = array("testregdAdviser","testregdAdviser2");
						foreach($string as $str){
							echo "<option value=\"". $str ."\">".$str."</option>";
						}
					?>
				</select></td>
			</tr>
			<tr>
				<td><label for="SPAdviser">SP Adviser: </label></td>
				<td><select id="SPAdviser" name="SPAdviser">
					<?php
						$string = array("testSPAdviser","testSPAdviser2");
						foreach($string as $str){
							echo "<option value=\"". $str ."\">".$str."</option>";
						}
					?>
				</select></td>
			</tr>
			<tr>
				<td><label for="curriculum">Curriculum: </label></td>
				<td><select id="curriculum" name="curriculum">
					<?php
						$string = array("testCurriculum","testCurriculum2");
						foreach($string as $str){
							echo "<option value=\"". $str ."\">".$str."</option>";
						}
					?>
				</select></td>
			</tr>
		</table>
    </div>
                
                <!--View this when Administrative staff is selected-->
     <div id="divAdminStaff" class="hidden">
		<table>
            <tr>
				<td><label for="aSEmployeeNumber">Employee Number: </label></td>
				<td><input type="text" id="aSEmployeeNumber" name="aSEmployeeNumber" size=14 maxlength=14></td>
			</tr>
			<tr>
				<td><label for="aSDesignation">Designation: </label></td>
				<td><select id="aSDesignation" name="aSDesignation">
					<?php
						$string = array("testDesignation", "testDesignation2", "testDesignation3");
						foreach($string as $x){
							echo "<option value=\"".strtolower($x)."\">".$x."</option>";
						}
					?>
				</select></td>
			</tr>
					</table>
                </div>
                
    <!--View this when Instructor is selected-->
    <div id="divInstructor" class="hidden">
		<table>
            <tr>
				<td><label for="iEmployeeNumber">Employee Number:</label></td>
				<td><input type="text" id="iEmployeeNumber" name="iEmployeeNumber" size=14 maxlength=14></td>
			</tr>
			<tr>
				<td><label for="iFacultyRoom">Fcaulty Room: </label></td>
				<td><input type="text" id="iFacultyRoom" name="iFacultyRoom"></td>
			</tr>
			<tr>
				<td><label for="iDdesignation">Designation: </label></td>
				<td><select id="iDdesignation" name="iDdesignation">
					<?php
						$string = array("Instructor", "Professor", "Associate Professor");
						foreach($string as $x){
							echo "<option value=\"".strtolower($x)."\">".$x."</option>";
						}
					?>
				</select></td>
			</tr>
			<tr>
				<td><label for="rabk">Rank: </label></td>
				<td><input type="text" id="rank" name="rank"></td>
			</tr>
		</table>
	</div>
    <input type="hidden" value="student" name="chosentype">
    <input type="submit" value="Register" name="register" id="register">
    </form>
		
<!-- END FORM-->